package com.sky.wsp.assembly.module3;

import com.sky.wsp.assembly.module1.EvilUtils;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * @author wangshaopeng@talkweb.com.cn
 * @desccription 在此输入描述
 * @date 2024/4/2
 */
public class DemoApp {

    public static void main(String[] args) {
        String word;
        if (null == args || args.length == 0) {
            System.err.println("there is not args, please input a word: ");
            try {
                BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                word = br.readLine();
            } catch (IOException e) {
                word = e.getMessage();
            }
        } else {
            word = args[0];
        }
        String answer = EvilUtils.giveMeAWord(word);
        System.out.println(answer);
    }
}
